Make sure that the say command, sprites, and background are all inside the if statement.

  • Add another if to test if result is equal to d_num.
  • Use Say and the planner to have the sprite say the result message for knight.
  • Drag in a Knight sprite. Name it result_sprite. Change its position to (0, -3) with Go To.
  • Drag in Drawbridge and drop it inside your if statement.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)